package com.dailyblue.example.springcloud.seata.order.feign;

import com.dailyblue.example.springcloud.commons.util.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient("cloud-example-seata-stock")
public interface StockFeign {
    @PutMapping("/stock/{id}/{number}")
    JsonResult update(@PathVariable("id") String id, @PathVariable("number") int number);
}
